package com.player.thirdGroup.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author VULCAN
 * @create 2019-12-27 21:07
 * @desc 单位表
 **/
@Entity
@Table(name = "sys_dept")
public class Dept {
    @Id
    @Column(name = "dept_id")
    private String id;
    @Column(name = "dept_name")
    private String name;
    @Column(name = "dept_person")
    private String person;
    @Column(name = "dept_phone")
    private String phone;
    @Column(name = "dept_img")
    private String img;
    @Column(name = "dept_status")
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "dept_cdate")
    private Date cdate;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }
}
